import { useModel } from "@umijs/max"

interface EmptyCardProps {
    text: string
}

const EmptyCard: React.FC<EmptyCardProps> = ({
    text
}) => {

    const { initialState } = useModel("@@initialState")

    return <div
        style={{
            display: 'flex',
            padding: '30px 40px',
            color: '#999',
            alignItems: 'center',
            justifyContent: 'center',
            // backgroundColor: initialState?.settings?.navTheme == 'realDark' ? 'rgba(0,0,0,0.3)' : 'rgba(0,0,0,0.05)'
        }}>{text}</div>
}

export default EmptyCard